-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add --no-file-parallelism, --maxWorkers, --minWorkers flags #4705
feat: add --no-file-parallelism, --maxWorkers, --minWorkers flags #4705
Conversation
✅ Deploy Preview for fastidious-cascaron-4ded94 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be mentioned on
vitest/docs/guide/debugging.md
Lines 57 to 63 in 4fb7482
```sh | |
# To run in a single worker | |
vitest --inspect-brk --pool threads --poolOptions.threads.singleThread | |
# To run in a single child process | |
vitest --inspect-brk --pool forks --poolOptions.forks.singleFork | |
``` |
Co-authored-by: Ari Perkkiö <[email protected]>
@AriPerkkio what do you think about renaming it to |
Right, as this does not change |
Description
This PR adds
--maxWorkers
,--minWorkers
flags, and--no-file-parallelism
flag that sets both of them to 1.This flag is particularly useful for debugging. See: #4643
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.